﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpedientFiledNewForm.aspx.cs"
    Inherits="SisLegal.ExpedientFiled.ExpedientFiledNewForm" MasterPageFile="~/Site.Master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script src="<%= Page.ResolveClientUrl("/Public/js/plugins/formatter/jquery.formatter.min.js") %>"
        type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#ctl00_MainContent_txtDateBegin').datepicker({
                todayBtn: "linked",
                keyboardNavigation: false,
                forceParse: false,
                calendarWeeks: true,
                autoclose: true
            });
            $('#ctl00_MainContent_txtDateEnd').datepicker({
                todayBtn: "linked",
                keyboardNavigation: false,
                forceParse: false,
                calendarWeeks: true,
                autoclose: true
            });            
            $('#ctl00_MainContent_txtNroExpedient').formatter({
                'pattern': '{{99999}}-{{9999}}-{{9}}-{{****}}-{{**}}-{{**}}-{{99}}'
            });
        });
    </script>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        Nuevo Expediente</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-horizontal" role="form">
                                <div class="form-group">
                                    <asp:Label ID="Error" runat="server" class="text-danger col-sm-2" Text=""></asp:Label>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtNroExped">
                                        Nro de Expediente:</label>
                                    <div class="col-sm-4">
                                        <asp:TextBox ID="txtNroExpedient" runat="server" class="form-control" placeholder="00001-2005-0-1817-JR-CO-06"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="DDL_Type_Process">
                                        Tipo de Proceso:</label>
                                    <div class="col-sm-4">
                                        <asp:DropDownList ID="DDL_Type_Process" runat="server" class="form-control" OnSelectedIndexChanged="Index_Changed"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </div>
                                    <label class="control-label col-sm-2" for="ddlViaProcedural">
                                        Via Procedimental:</label>
                                    <div class="col-sm-4">
                                        <asp:DropDownList ID="ddlViaProcedural" runat="server" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtDateBegin">
                                        Fecha de Inicio:</label>
                                    <div class="col-sm-4">
                                        <asp:TextBox ID="txtDateBegin" runat="server" class="form-control" placeholder="Fecha de Inicio"></asp:TextBox>
                                    </div>
                                    <label class="control-label col-sm-2" for="txtDateEnd">
                                        Fecha de Termino:</label>
                                    <div class="col-sm-4">
                                        <asp:TextBox ID="txtDateEnd" runat="server" class="form-control" placeholder="Fecha de Termino "></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="DDL_ResultSentences">
                                        Resultado de la Sentencia:</label>
                                    <div class="col-sm-10">
                                        <asp:DropDownList ID="DDL_ResultSentences" runat="server" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtJuzgado">
                                        Juzgado/Sala:</label>
                                    <div class="col-sm-10">
                                        <asp:TextBox ID="txtJuzgado" runat="server" class="form-control" placeholder="Juzgado/Sala"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtPretencion">
                                        Pretencion:</label>
                                    <div class="col-sm-10">
                                        <asp:TextBox ID="txtPretencion" runat="server" class="form-control" placeholder="Juzgado/Sala"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtDemandante">
                                        Demandante:</label>
                                    <div class="col-sm-3">
                                        <asp:TextBox ID="txtDemandante" runat="server" class="form-control" placeholder="Demandante"></asp:TextBox>
                                    </div>
                                    <label class="control-label col-sm-1" for="txtDemandado">
                                        Demandado:</label>
                                    <div class="col-sm-3">
                                        <asp:TextBox ID="txtDemandado" runat="server" class="form-control" placeholder="Demandado"></asp:TextBox>
                                    </div>
                                    <label class="control-label col-sm-1" for="DDL_Participation_Seal" style="padding-top: 0px;">
                                        Participación Seal:</label>
                                    <div class="col-sm-2">
                                        <asp:DropDownList ID="DDL_Participation_Seal" runat="server" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtLawyerOther">
                                        Abogado Asignado:</label>
                                    <div class="col-sm-10">
                                        <asp:TextBox ID="txtLawyerOther" runat="server" class="form-control" placeholder="Demandado"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtSumilla">
                                        Sumilla/Motivo y Origen del Proceso:</label>
                                    <div class="col-sm-10">
                                        <asp:TextBox ID="txtSumilla" runat="server" class="form-control" placeholder="Sumilla/Motivo y Origen del Proceso"
                                            Rows="5" TextMode="multiline"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2" for="txtObservaciones">
                                        Observaciones:</label>
                                    <div class="col-sm-10">
                                        <asp:TextBox ID="txtObservaciones" runat="server" class="form-control" placeholder="Observaciones"
                                            Rows="5" TextMode="multiline"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <asp:Button ID="btnSave" runat="server" Text="Grabar" OnClick="btnSave_Click" class="btn btn-primary" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
